/*
 * @Author: yangrongxin
 * @Date: 2021-07-23 11:36:50
 * @LastEditors: liubin
 * @LastEditTime: 2021-10-11 14:50:30
 */
export enum ENV_TYPE {
  DEV = 'dev',
  TEST = 'test',
  STAGING = 'staging',
  PROD = 'production',
}

// 定义当前请求接口的文件
export const serviceList = {
  [ENV_TYPE.DEV]: {
    // API_BASE: JSON.stringify('http://10.88.32.185:8260'), // 本地
    // API_BASE: JSON.stringify('http://192.168.168.31:10000'), // 测试
    API_BASE: 'https://hhttestapi.cd120.info/hxt-dev',
    API_PAY: 'https://pttestapi.cd120.info/cloud',
    API_INTEGRAL: 'https://hhttestapi.cd120.info/hxt-dev',
    MINI_PROGRAM_STATE_ENV: ENV_TYPE.DEV,
    RSA_PUBLIC_KEY:
      'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpHyyL70xXNLYs9bjQ00fD1sMlXJGSrDiqycCR5iQZ3P6iz+qRYHu8hR+WDb0WNWwZzkmJS5p600ijSiJv0gornZEQOVZs3kwL89smRO3v03AmDzo8PzyN7NHztXk7JI3lSPDqxn71zIG8POAuWKr97QhTgrIU7X46I3UBlDQd+wIDAQAB',
  },
  [ENV_TYPE.TEST]: {
    // API_BASE: JSON.stringify('http://10.88.32.185:8260'), // 本地
    // API_BASE: JSON.stringify('http://192.168.168.31:10000'), // 测试
    API_BASE: 'https://hhttestapi.cd120.info/hxt',
    API_PAY: 'https://pttestapi.cd120.info/cloud',
    API_INTEGRAL: 'https://hhttestapi.cd120.info/hxt',
    MINI_PROGRAM_STATE_ENV: ENV_TYPE.TEST,
    RSA_PUBLIC_KEY:
      'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpHyyL70xXNLYs9bjQ00fD1sMlXJGSrDiqycCR5iQZ3P6iz+qRYHu8hR+WDb0WNWwZzkmJS5p600ijSiJv0gornZEQOVZs3kwL89smRO3v03AmDzo8PzyN7NHztXk7JI3lSPDqxn71zIG8POAuWKr97QhTgrIU7X46I3UBlDQd+wIDAQAB',
  },
  [ENV_TYPE.STAGING]: {
    API_BASE: 'https://hxgyapipre.cd120.info/hxt',
    API_PAY: 'https://hxgyapipre.cd120.info/cloud',
    API_INTEGRAL: 'https://hxgyapipre.cd120.info/hxt',
    MINI_PROGRAM_STATE_ENV: ENV_TYPE.STAGING,
    RSA_PUBLIC_KEY:
      'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOWsQj2GfYRL4bvAxiJputs+X1QXRFaemwl1ow8DY+NmLc8swP+iXWJFJlgdyiwrMg/Vt2Y4E1PfNv+6IRjzkhBEX74/YdiLwTciYInAj4eY0JVNpqd+N7qMtyc3qIobB2JZQLk6tk1zqHFxJYoc70cyOI02jUcEYQkSA5LwDExQIDAQAB',
  },
  [ENV_TYPE.PROD]: {
    API_BASE: 'https://hhtapi.cd120.info/hxt',
    API_PAY: 'https://hxgyapiv2.cd120.info/cloud',
    API_INTEGRAL: 'https://hhtapi.cd120.info',
    MINI_PROGRAM_STATE_ENV: ENV_TYPE.PROD,
    RSA_PUBLIC_KEY:
      'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCs9TA/DnlBpBRYJFqkBWvIn5mXI5wX8mSLXd9+9szatLEnQtYLQ3pYW31OxWLuuqynse+oPxFY9g5iQnD3CEJinywsaSpoE3Yl3m7fssNH+GJcZoIDMlmgUwMZmhCuE31VTVmzQ8tw8WAzKvP+7MQ+FGd6Qpyi/eYDqHLzrgfQCQIDAQAB',
  },
};
